package com.it.travel01.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.it.travel01.pojo.User;
import com.it.travel01.vo.ResultInfo;

public interface UserService extends IService<User> {

    /**
     * 从前端请求数据
     * @param user
     * @param check
     * @param check_coder
     * @return
     */
    ResultInfo register(User user, String check, String check_coder);

    /**
     * 激活账户
     * @param code
     * @return
     */
    Boolean activateUser(String code);

    /**
     * 账户登录
     * @param user
     * @param check
     * @param check_coder
     * @return
     */
    ResultInfo loginUser(User user, String check, String check_coder);

    /**
     * 登录表头数据回显用户名
     * @return
     */
    ResultInfo getData();

    /**
     * 登出
     * @return
     */
    Boolean loginOut();

}
